package com.xinyue.auto.bean;

public class Query {
	private int type;//查询类型：1>query 2>hql 3>dynamic
	/**方法名称*/
	private String method;
	/**返回类型*/
	private String returnType;
	/**参数类型及信息*/
	private String params;
	/**参数信息：无参数类型*/
	private String paramsIn;
	/**查询语句*/
	private String state;
	/**entity标签下的查询条件*/
	private String[] paramSetter;
	
	/**用于在入参类型为Map时，匹配参数并植入SQL语句*/
	private String paramArray;
	
	/**是否是查询语句*/
	private boolean query;
	/**是否返回唯一的对象*/
	private boolean only;
	/**是否强制转换返回类型*/
	private boolean convert;
	/**是否在方法前添加标注@SuppressWarnings("unchecked")*/
	private boolean warning;
	
	/**返回值是否是map，需进行预处理*/
	private boolean map;
	/**是否具有入参，只适用于Dynamic查询*/
	private boolean noParam;
	
	/**是否是sql语句查询*/
	private boolean sql;
	/**是否对查询进行分页处理*/
	private boolean paging;
	
	/**DTO对象*/
	private String dto;
	
	//getter setter
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getReturnType() {
		return returnType;
	}
	public void setReturnType(String returnType) {
		this.returnType = returnType;
	}
	public String getParams() {
		return params;
	}
	public void setParams(String params) {
		this.params = params;
	}
	public String getParamsIn() {
		return paramsIn;
	}
	public void setParamsIn(String paramsIn) {
		this.paramsIn = paramsIn;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String[] getParamSetter() {
		return paramSetter;
	}
	public void setParamSetter(String[] paramSetter) {
		this.paramSetter = paramSetter;
	}
	public String getParamArray() {
		return paramArray;
	}
	public void setParamArray(String paramArray) {
		this.paramArray = paramArray;
	}
	public boolean isWarning() {
		return warning;
	}
	public void setWarning(boolean warning) {
		this.warning = warning;
	}
	public boolean isOnly() {
		return only;
	}
	public void setOnly(boolean only) {
		this.only = only;
	}
	public boolean isConvert() {
		return convert;
	}
	public void setConvert(boolean convert) {
		this.convert = convert;
	}
	public boolean isQuery() {
		return query;
	}
	public void setQuery(boolean query) {
		this.query = query;
	}
	public boolean isMap() {
		return map;
	}
	public void setMap(boolean map) {
		this.map = map;
	}
	public boolean isSql() {
		return sql;
	}
	public void setSql(boolean sql) {
		this.sql = sql;
	}
	public String getDto() {
		return dto;
	}
	public void setDto(String dto) {
		this.dto = dto;
	}
	public boolean isPaging() {
		return paging;
	}
	public void setPaging(boolean paging) {
		this.paging = paging;
	}
	public boolean isNoParam() {
		return noParam;
	}
	public void setNoParam(boolean noParam) {
		this.noParam = noParam;
	}
}